﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CSCodeLib.Infrastructure.IO
{
    public class FileWrapper : IFile
    {
        public string ReadAllText(string path)
        {
            return File.ReadAllText(path);
        }

        public string[] ReadAllLine(string path)
        {
            return File.ReadAllLines(path);
        }

        public void WriteAllText(string path, string content)
        {
            File.WriteAllText(path, content);
        }
    }

    public interface IFile
    {
        string ReadAllText(string path);

        string[] ReadAllLine(string path);

        void WriteAllText(string path, string content);
    }
}
